<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		
		},
		onShow: function() {
			this.clearAppcache()
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		
		methods: {
			clearAppcache() {
				if(uni.getsystemInfosync().platform===	"android"){
				
					plus.cache.clear(()=>{
						console.log('缓存已清除');
						this.reloadwebview();
					},(error)=>{
						console.log(error)
		
					})
		
		
				}else{
					console.log('不是安卓设备')
				}
			},
		
			reloadwebview(){
				this,$refs.webview.reload();//重新加载webview
			}
		
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
